package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entify.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    //新增菜品，同时插入菜品对应的口味数据
    public void saveWithFlavor(DishDto dishDto);

    //根据id查询菜品信息和对应的口味信息
    public DishDto getByIdFlavor(Long id);

    //更新菜品信息，修改菜品的口味
    public void updateWithFlavor(DishDto dishDto);

//删除
    public boolean deleteWithFlavor(List<Long> ids) throws Exception;

}
